//
//  UITextField+Category.m
//  YLB
//
//  Created by Zoo Chow on 18/02/2017.
//  Copyright © 2017 Zoo. All rights reserved.
//

#import "UITextField+Category.h"

@implementation UITextField (Category)

+ (UITextField*)createTextField:(CGRect)frame withPlaceholder:(NSString *)placeholder withFont:(UIFont *)font withTextColor:(UIColor *)textColor {
    UITextField * textField = [[UITextField alloc]initWithFrame:frame];
    textField.textAlignment = NSTextAlignmentLeft;
    textField.placeholder = placeholder;
    textField.font = font;
    textField.textColor = textColor;
    textField.clearButtonMode = UITextFieldViewModeWhileEditing;
    textField.backgroundColor = [UIColor whiteColor];
    return textField;
}

@end
